<div class="albums">
    <ul>
    <?php
        foreach($albums as $album):
            $uri = '/thu-vien-anh/' . url_title($album->name, 'dash', TRUE) . '-' . $album->id ;
    ?>
        <li>
            <a href="<?php echo $uri;?>"><img src="/images/albums/<?php echo $album->image_name;?>"/></a>
            <a href="<?php echo $uri;?>"><h3><?php echo $album->name;?></h3></a>
        </li>
    <?php endforeach;?>
    </ul>
</div>